package com.example.demo.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * 
 * </p>
 *
 * @author ak
 * @since 2020-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer cId;

    private Integer cQuestionId;

    private Integer cCommentId;

    @NotEmpty(message = "评论内容不能为空")
    private String cText;

    private String cCreate;

    private Integer cLike;

    private String cAuthor;

    private String cCount;

    private Integer cType;

    @TableField(exist = false)
    private List<Comment> secondCommentList;

    @TableField(exist = false)
    private User user;


}
